from locale import str

def buildMatrix(column,row,rowList):
    matrix= [ [ 0 for i in range(column) ] for j in range(row) ]
    
    for x in range(0,len(rowList)):
        intString=str(rowList[x])
        r=int(intString[0:1])
        c=int(intString[1:2])
        matrix[r][c]=x+1
            
            
        #
    print matrix
 